using System;
using System.Collections.Generic;
using System.Text;
using CodeFactory.IDAL;

namespace CodeFactory.Library.Config
{
    [Serializable]
    public class DatabaseInfo
    {
        [NonSerialized]
        private string name;

        [NonSerialized]
        private string dllName;

        [NonSerialized]
        private string className;

        [NonSerialized]
        private ConnectionInfo connInfo;

        public DatabaseInfo()
        {
            this.name = string.Empty;
            this.dllName = string.Empty;
            this.className = string.Empty;
            this.connInfo = new ConnectionInfo();
        }

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public string DllName
        {
            get { return this.dllName; }
            set { this.dllName = value; }
        }

        public string ClassName
        {
            get { return this.className; }
            set { this.className = value; }
        }

        public ConnectionInfo ConnInfo
        {
            get { return this.connInfo; }
            set { this.connInfo = value; }
        }
    }
}
